<template>
  <div class="form-config-container">
    <el-form label-position="top">
      <el-form-item label="对齐方式">
        <el-radio-group v-model="data.align">
          <el-radio-button label="left">左对齐</el-radio-button>
          <el-radio-button label="right">右对齐</el-radio-button>
          <el-radio-button label="top">顶部对齐</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="所有的列是否允许拖动列宽调整大小">
        <el-radio-group v-model="data.resizable">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="所有列的宽度是否自撑开">
        <el-radio-group v-model="data.fit">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="是否带有斑马纹">
        <el-radio-group v-model="data.stripe">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="是否带有纵向边框">
        <el-radio-group v-model="data.border">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="是否显示表头">
        <el-radio-group v-model="data.showHeader">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="只对 type=index 的列有效，动态索引的起始值" >
        <el-input-number v-model="data.startIndex" :min="0" :max="100" :step="1"></el-input-number>
      </el-form-item>
      <el-form-item label="隐藏指定列">
        <el-select v-model="data.hideColumn">
          <el-option value="year"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="显示指定列">
        <el-select v-model="data.showColumn">
          <el-option value="year"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="是否要高亮当前行">
        <el-radio-group v-model="data.highlightCurrentRow">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="是否要高亮当前行">
        <el-radio-group v-model="data.highlightCurrentRow">
          <el-radio-button :label="false">是</el-radio-button>
          <el-radio-button :label="true">否</el-radio-button>
        </el-radio-group>
      </el-form-item>

      <el-form-item label="表单字段宽度">
        <el-input-number v-model="data.labelWidth" :min="0" :max="200" :step="10"></el-input-number>
      </el-form-item>

      <el-form-item label="组件尺寸">
        <el-radio-group v-model="data.size">
          <el-radio-button label="medium">medium</el-radio-button>
          <el-radio-button label="small">small</el-radio-button>
          <el-radio-button label="mini">mini</el-radio-button>
        </el-radio-group>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: ['data']
}
</script>
